package demo.collision;

import engine.gameObject.GameObject;
import engine.gameObject.Script;
import engine.gui.elements.Label;

public class ObeliskScript extends Script {

	private Label collision;
	
	public ObeliskScript(Label collision) {
		this.collision = collision;
	}
	
	@Override
	public void update(float timeElapsed) {
		collision.setText("No collision");
	}
	
	@Override
	public void collides(GameObject other, float[] upVector) {
		collision.setText("Collision detected");
	}
}
